import dao.GoodDAO;
import dao.UserDAO;
import entity.GoodEntity;
import utilities.HibernateUtil;
import utilities.MailUtil;

import java.sql.Timestamp;

public class Main {
    public static void main(String... args){

        GoodEntity[] result = GoodDAO.searchGoods("行",new Timestamp(System.currentTimeMillis()),0,12);
        for(GoodEntity g:result)
            System.out.println(g.getTitle());
        HibernateUtil.closeSessionFactory();
    }
}